package com.liujie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liujie.mapper.RoomMapper;
import com.liujie.pojo.Room;
import com.liujie.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoomServiceImpl extends ServiceImpl<RoomMapper, Room> implements RoomService {
    @Autowired
    private RoomMapper roomMapper;
    @Override
    public List<Room> findAll() {
        List<Room> rooms = roomMapper.selectList(null);
        return rooms;
    }
}
